{% extends "loginBase.html" %}

{% block title %}
欢迎来财豆
{% endblock %}

{% block left %}
<div id="left">
<ul>
<li>
<img alt="" src="">
</li>
<li>
<img alt="" src="">
</li>
<li>
<img alt="" src="">
</li>
</ul>
</div>
{% endblock %}

{% block login %}
<div id="login">
<div>财豆说</div>
<form action="login" method="post">
	{% if form.userNotExist %}
		<p style="color: red;">
			用户不存在
		</p>
	{% endif %}
	{% if form.passwordIsWrong %}
		<p style="color: red;">
			密码错误
		</p>
	{% endif %}
    <div class="field">
        {% if form.email.errors %}
        	<p style="color: red;">
				邮箱不能为空
			</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_email">邮箱:</label>
        {{ form.email }}
    </div>
    <div class="field">
        {% if form.password.errors %}
        	<p style="color: red;">
        		密码不能为空
        	</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_password">密码:</label>
        {{ form.password }}
    </div>
    <input type="submit" value="登陆">
    <a href="register">注册</a>
</form>
</div>
{% endblock %}
